#include"searcher.hpp"
#include<iostream>
#include<string>
const std::string input="data/raw_html/raw.txt";


int main()
{
  ns_searcher::Searcher *search=new ns_searcher::Searcher();
  search->InitSearcher(input);

  std::string query;
  std::string json_string;
  while(true)
  {
    std::cout<<"请输入搜索关键词"<<std::endl;
    std::getline(std::cin,query);
    //std::cout<<query<<std::endl;
    search->Search(query,&json_string);

    std::cout<<json_string<<std::endl;
  }

  return 0;
}
